import Vue from 'vue';
import VueRouter from "vue-router";
import VueResource from 'vue-resource';
import secondcomponent from './components/highcharts/secondcomponent.vue';
import pie from './components/highcharts/pie.vue';
import  vueIndex from './components/vue/vueIndex.vue';
import  firstComponent from './components/vue/base/components/firstComponent.vue';
import aboutPage from './components/about.vue';
import HeaderTab from './components/header.vue';
//-------------------vue------------------------
import base from './components/vue/base/base.vue';
import main from './components/vue/base/main.vue';

//---------------例子----------------------------
import exampleIndex from './components/example/exampleIndex.vue';

Vue.use(VueRouter);
Vue.use(VueResource);
export default new VueRouter({
    routes:[
        {
            path:'/',
            component:secondcomponent
        },
        {
            path:'/about',
            component:aboutPage
        },
        {
            path:'/highchartes',
            component:secondcomponent
        },
        {
            path:'/column',
            component:secondcomponent
        },
        {
            path:'/pie',
            component:pie
        },
        {
            path:'/vue',
            component:vueIndex
        },
        {
            path:'/baseVue',
            component:base
        },
        {
            path:'/firstComponents',
            component:firstComponent
        },
        {
            path:'/main',
            component:main
        },
        {
            path:'/exampleList',
            component:exampleIndex
        }
    ]
});
